﻿using System.ComponentModel.DataAnnotations;

namespace WidgetsDesign.API.Models
{
    public class WidgetsList
    {
        [Key]
        [Required]
        public int Id {get;set ;}
        [Required]
        public string Name { get;set ;}
        [Required]
        public string ImageUrl { get;set ;}
        [Required]
        public int PageViews { get;set ;}
        [Required]
        public string Introduction { get;set ;}
        [Required]
        public double Price { get;set ;}
        [Required]
        public string Config { get;set ;}
        [Required]
        public DateTime CreateTime { get;set ;}
    }
}
